import java.io.*;

abstract class Person {
	// cai nay goi la property hay state-thuoc tinh cua doi tuong
	String hoten;
	int age;
	String diachi;
	int luong;
	BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

	// constructor
	public Person(int age) {
		this.age = age;
	}

	public Person() {
		hoten = "";
		age = 0;
		diachi = "";
		luong = 0;
	}

	// cac method hay behavior-hanh vi cua doi tuong
	public void Nhap() throws Exception {
		System.out.print("nhap ten: ");
		hoten = in.readLine();
		System.out.print("nhap dia chi: ");
		diachi = in.readLine();
	}

	// vi 1 class thuoc abstract class nen Person duoc phep khai bao cac method
	// khong co noi dung,noi dung cua lop In se duoc cac lop con dinh nghia.
	public abstract void In();

	public abstract int Tinhluong();

}
